<?php 
$mod='blank';
include("../includes/common.php");
include './head.php';
if($islogin==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
if(isset($_POST['submit'])) {
    foreach ($_POST as $k => $value) {
        if($k=='pwd')continue;
        $value=daddslashes($value);
        $DB->query("insert into pay_config set `k`='{$k}',`v`='{$value}' on duplicate key update `v`='{$value}'");
    }
    echo "<script language='javascript'>alert('您的监控信息已修改成功！');history.go(-1);</script>";
    exit();
}
?>
<div class="x-nav">
          <span class="layui-breadcrumb">
           <a>
              首页</a>
            <a>
              <cite>订单监控设置</cite></a>
          </span>
          <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>

  <div class="layui-tab page-content-wrap layui-card">
      <ul class="layui-tab-title">
        <li class="layui-this">监控设置</li>
      </ul>
      <div class="layui-tab-content">
        <!--站点配置-->
        <div class="layui-tab-item layui-show">
          <form class="layui-form" action="./jkset.php?mod=site_n" method="post" style="width: 90%;padding-top: 20px;">
            <div class="layui-form-item">
              <label class="layui-form-label">易支付监控接口地址：</label>
              <div class="layui-input-block">
                <input type="text"  autocomplete="off" required="" class="layui-input" name="topay_url" value="<?php echo $conf['topay_url']; ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">*默认易支付格式http或https://易支付域名url/api.php?act=orders&limit=50&pid=易支付商户号&key=易支付秘钥</div>
            </div>
           

      
            <div class="layui-form-item">
              <label class="layui-form-label">监控识别码配置：</label>
              <div class="layui-input-block">
                <input type="text" name="topay" required="" lay-verify="required" placeholder="请输入监控识别码" autocomplete="off" class="layui-input" value="<?php echo $conf['topay']; ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">*监控识别码配置必须设置</div>
            </div>
          
          

            <div class="layui-form-item">
              <div class="layui-input-block">
              <input type="submit" name="submit" value="保存修改" class="layui-btn layui-btn-normal "/>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>

     <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">监控详情</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>温馨提示：</th>
                                        <td>结算监控每天只能点击一次，或 设置每日零点零分执行一次 监控用阿里云监控或宝塔自带的计划任务！<br/></td>
                                    </tr>
                                    <tr>
                                        <th>余额监控地址：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/cron.php?key=<?php echo $conf['topay']; ?>
                                            <a href="/cron/cron.php?key=<?php echo $conf['topay']; ?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>

                                    </tr>
                                     <tr>
                                        <th>结算监控地址：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/cron.php?key=<?php echo $conf['topay']; ?>&do=settle
                                            <a href="/cron/cron.php?key=<?php echo $conf['topay']; ?>&do=settle" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>
                                            
                                    </tr>
                                     <tr>
                                        <th>支付宝自动补单监控：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/budan_alipay.php?key=<?php echo $conf['topay']; ?> 
                                            <a href="/cron/budan_alipay.php?key=<?php echo $conf['topay']; ?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>
                                            
                                    </tr>
                                     <tr>
                                        <th>微信自动补单监控：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/budan_wxpay.php?key=<?php echo $conf['topay']; ?>
                                            <a href="/cron/budan_wxpay.php?key=<?php echo $conf['topay']; ?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>
                                            
                                    </tr>
                                     <tr>
                                        <th>QQ自动补单监控：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/budan_qqpay.php?key=<?php echo $conf['topay']; ?>  
                                            <a href="/cron/budan_qqpay.php?key=<?php echo $conf['topay']; ?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>
                                            
                                    </tr>
                                     <tr>
                                        <th>财付通自动补单监控：</th>
                                        <td>http://<?php echo $_SERVER['HTTP_HOST']; ?>/cron/budan_tenpay.php?key=<?php echo $conf['topay']; ?> 
                                            <a href="/cron/budan_tenpay.php?key=<?php echo $conf['topay']; ?>" target="_blank" class="layui-btn layui-btn-sm layui-btn-danger">点击访问</a></td>
                                            
                                    </tr>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>           
  <!--请勿盗卖酷享云支付源码程序 ，如发现盗卖将不提供更新服务，系统由余生网络信息提供技术服务-->
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  

});
</script>